package com.example.driftwindow;



import yinhang.BankMainActivity;

import game.GameMainActivity;
import gouwu.GouwuMainActivity;

import com.example.driftwindow.e_mail.EmailActivity;

import daohang.daohangMainActivity;


import android.app.Activity;
import android.content.Intent;
import android.net.Uri;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.ImageButton;

public class BaseActivity extends Activity{

	void addButtons()
	{

		ImageButton imgbut11 = (ImageButton) findViewById(R.id.youxiangbutton);
		imgbut11.setOnClickListener(new OnClickListener() {			
			@Override
			public void onClick(View v) {				
				Intent intent=new Intent();
				intent.setClass(BaseActivity.this,EmailActivity.class);
			     startActivity(intent);
			     finish();
			}
		});
		ImageButton imgbut12 = (ImageButton) findViewById(R.id.daohangbutton);
		imgbut12.setOnClickListener(new OnClickListener() {			
			@Override
			public void onClick(View v) {				
				Intent intent=new Intent();
				intent.setClass(BaseActivity.this,daohangMainActivity.class);
			     startActivity(intent);
    		     finish();
			}
		});
		ImageButton imgbut21 = (ImageButton) findViewById(R.id.gouwubutton);
		imgbut21.setOnClickListener(new OnClickListener() {			
			@Override
			public void onClick(View v) {				
						
					Intent intent=new Intent();
					intent.setClass(BaseActivity.this,GouwuMainActivity.class);
				     startActivity(intent);
				     finish();
				}
			
		});
		ImageButton imgbut22 = (ImageButton) findViewById(R.id.wangyoubutton);
		imgbut22.setOnClickListener(new OnClickListener() {			
			@Override
			public void onClick(View v) {				
				
				Intent intent=new Intent();
				intent.setClass(BaseActivity.this,GameMainActivity.class);
			     startActivity(intent);
			     finish();
			}
		});
		ImageButton imgbut31 = (ImageButton) findViewById(R.id.wangyinbutton);
		imgbut31.setOnClickListener(new OnClickListener() {			
			@Override
			public void onClick(View v) {				
				
			Intent intent=new Intent();
			intent.setClass(BaseActivity.this,BankMainActivity.class);
		     startActivity(intent);
		     finish();
			}
		});
		ImageButton imgbut32 = (ImageButton) findViewById(R.id.cengjinbutton);
		imgbut32.setOnClickListener(new OnClickListener() {			
			@Override
			public void onClick(View v) {				
				Uri uri = Uri
						.parse("http://www.dengluyi.com/shoujiban/lishi.htm");
				Intent it = new Intent(Intent.ACTION_VIEW, uri);
				startActivity(it);
			}
		});
		
	}
}
